<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
</head>
<body>
htllo
<br/>
<p th:text="${ hello}">打底值</p>
<br/>
循环
<br/>
<p th:each="str:${list}" th:text="${str}"></p>
<br/>
<p th:each="strs:${list}">
    <input th:text="${strs}" th:value="${strs}" value="99999"/>
</p>
<br/>
判断
<br/>
<p th:if="1==1">我是存在的</p>
<p th:if="1==2">我是不存在的</p>
<br/>
<input type="checkbox" th:checked="${check} == '1' "/>
<br/>
<!--  传值给javascript  -->
<a th:href="'javascript:a(\''+${hello}+'\')'">点我</a>

<br/>

<div th:include="indexinner">页面引入嗡嗡嗡</div>

<div th:include="indexinner::innerPart">部分页面引入嗡嗡嗡</div>


<script language="JavaScript">
    function a(hello) {
        alert("javaScript函数被调用" + hello)
    }
</script>
</body>
</html>